Skip to content

Avoid automatic hierarchy reload when iOS apps reopen - #49

Merged
Kyle-Ye merged 1 commit into
mainfrom
fix/manual-refresh-after-ios-resume
Dec 5, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
fix/manual-refresh-after-ios-resume

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Fixes #48. Related to #44, which also tracks screenshot prefetch and a UIKit exception.

Changes

  • Preserve the existing hierarchy when an iOS app returns to the foreground or reconnects in the same process.
  • After an app restart, prompt for Reload. Adopt the new process after the hierarchy loads successfully, keeping old-tree requests on the disconnected channel until then.
  • Return the current target ID when an explicit MCP refresh adopts a restarted process.

Verification

  • HostCore passed 220 tests.
  • The macOS Host passed 79 tests, including foreground recovery, reconnect, and retry after a failed explicit reload.
  • iOS 27 Simulator passed 24 end-to-end checks covering foreground return, app relaunch, recovery from a silent connection, and a request interrupted by termination.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T13:42:27.337118Z d0c6965 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Kyle-Ye
Kyle-Ye merged commit 2570865 into main Dec 5, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

每次重新打开手机app都会自动刷新mac lookinside,导致手机很卡,这时需要手动退出mac lookinside,画蛇添足的功能

1 participant